package service;

import dao.i.ContentDao;
import dao.impl.ContentDaoImpl;
import entity.Brand;
import entity.Content;
import java.util.List;

public class ContentService {

    ContentDao contentDao = new ContentDaoImpl();

    //按板块查找内容
    public List<Content> selectContentByBrandId(int brandId) {
        return contentDao.selectContentByBrandId(brandId);
    }

    //获得板块下内容的数量
    public int selectContentAllCount(int brandId) {
        return contentDao.selectContentAllCount(brandId);
    }

    //按id获取内容
    public Content selectContentdById(int id) {
        return contentDao.selectContentdById(id);
    }
}
